package com.tk.exam.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;


@Data
@ConfigurationProperties(prefix = "database")
@EnableConfigurationProperties
@Component
public class DataBaseProperties {
    private String driverClassName;
    private String dbUrl;
    private String dbUsername;
    private String dbPassword;
    private String druidPoolInitialSize;
    private String druidPoolMaxActive;
    private String druidPoolMinIdle;
    private String druidPoolMaxWait;
    private String druidPoolValidationQuery;
    private String druidPoolTestOnBorrow;
    private String druidPoolTestOnReturn;
    private String druidPoolTestWhileIdle;
    private String druidPoolTimeBetweenEvictionRunsMillis;
    private String druidPoolMinEvictableIdleTimeMillis;
    private String druidPoolRemoveAbandoned;
    private String druidPoolLogSlowSql;
    private String druidPoolConnectionProperties;
    private String druidPoolCksConnectionProperties;
}
